package com.huarui.companydeal.dao.impl;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.dao.impl.BaseDaoImpl;

import com.huarui.companydeal.dao.ICompanyDealDao;
import com.huarui.companydeal.model.CompanyDeal;

public class CompanyDealDaoImpl extends BaseDaoImpl implements ICompanyDealDao {

	@Override
	public Integer getCompanyDealCountByCondition(Map<String, Object> queryMap) {
		return (Integer) getSqlMapClientTemplate().queryForObject(namespace+".getCompanyDealCountByCondition", queryMap);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<CompanyDeal> getCompanyDealsByCondition(Map<String, Object> queryMap) {
		return getSqlMapClientTemplate().queryForList(namespace+".getCompanyDealsByCondition", queryMap);
	}

}
